package com.liqi.mapper;

import com.liqi.beans.Course;
import com.liqi.beans.Order;
import com.liqi.beans.User;
import org.apache.ibatis.annotations.Param;
import org.springframework.data.jpa.repository.JpaRepository;

import java.math.BigDecimal;
import java.util.List;

public interface OrderMapper{
   User login(User user);
   String findById(Integer id);
   List<Course> getCourses();
   int addOrder(Order order);
   int addOrderDetails(@Param("list")List<Course> list,@Param("orderId")Integer id);
}
